package object;

import java.util.Arrays;

public class homework {
    public static void main(String[] args) {

String a="abc123123abc";
a=a.replaceAll("123","def");
        System.out.println(a);
        String c="abc123gbh45hhh777";
       String [] d=c.split("[0-9]+");
        System.out.println(Arrays.toString(d));


        Integer i1=new Integer(5);
        Integer i2=new Integer(5);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));
        Integer i3 = Integer.valueOf(500);
        Integer i4 = Integer.valueOf(500);
        System.out.println(i3==i4);
        System.out.println(i3.equals(i4));

        int i = i4.intValue();
        System.out.println(i);













//        String a="mjhmjhmjh@qq.com";
//        String regex="[a-zA-Z0-9_]+@[a-zA-Z0-9]+(\\.[a-zA-Z]+)+";
//        boolean match =a.matches(regex);
//        if (match){
//            System.out.println("符合");
//        }else{
//            System.out.println("不符合");
//        }
    }
}
